﻿#if USE_UNI_LUA
using LuaAPI = UniLua.Lua;
using RealStatePtr = UniLua.ILuaState;
using LuaCSFunction = UniLua.CSharpFunctionDelegate;
#else
using LuaAPI = XLua.LuaDLL.Lua;
using RealStatePtr = System.IntPtr;
using LuaCSFunction = XLuaBase.lua_CSFunction;
#endif

using XLua;
using System.Collections.Generic;


namespace XLua.CSObjectWrap
{
    using Utils = XLua.Utils;
    public class YoozooCoreCommonSmartResLoaderWrap 
    {
        public static void __Register(RealStatePtr L)
        {
			ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
			System.Type type = typeof(Yoozoo.Core.Common.SmartResLoader);
			Utils.BeginObjectRegister(type, L, translator, 0, 4, 5, 4);
			
			Utils.RegisterFunc(L, Utils.METHOD_IDX, "AddLoad", _m_AddLoad);
			Utils.RegisterFunc(L, Utils.METHOD_IDX, "Load", _m_Load);
			Utils.RegisterFunc(L, Utils.METHOD_IDX, "Dispose", _m_Dispose);
			Utils.RegisterFunc(L, Utils.METHOD_IDX, "ToString", _m_ToString);
			
			
			Utils.RegisterFunc(L, Utils.GETTER_IDX, "ResLoader", _g_get_ResLoader);
            Utils.RegisterFunc(L, Utils.GETTER_IDX, "LoadingCount", _g_get_LoadingCount);
            Utils.RegisterFunc(L, Utils.GETTER_IDX, "taskName", _g_get_taskName);
            Utils.RegisterFunc(L, Utils.GETTER_IDX, "completeTime", _g_get_completeTime);
            Utils.RegisterFunc(L, Utils.GETTER_IDX, "ResPathList", _g_get_ResPathList);
            
			Utils.RegisterFunc(L, Utils.SETTER_IDX, "LoadingCount", _s_set_LoadingCount);
            Utils.RegisterFunc(L, Utils.SETTER_IDX, "taskName", _s_set_taskName);
            Utils.RegisterFunc(L, Utils.SETTER_IDX, "completeTime", _s_set_completeTime);
            Utils.RegisterFunc(L, Utils.SETTER_IDX, "ResPathList", _s_set_ResPathList);
            
			
			Utils.EndObjectRegister(type, L, translator, null, null,
			    null, null, null);

		    Utils.BeginClassRegister(type, L, __CreateInstance, 1, 1, 1);
			
			
            
			Utils.RegisterFunc(L, Utils.CLS_GETTER_IDX, "ResLoadingCount", _g_get_ResLoadingCount);
            
			Utils.RegisterFunc(L, Utils.CLS_SETTER_IDX, "ResLoadingCount", _s_set_ResLoadingCount);
            
			
            Utils.RegisterFunc(L, Utils.CLS_IDX, "New", __CreateInstanceNew);
			Utils.EndClassRegister(type, L, translator);
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int __CreateInstance(RealStatePtr L)
        {
            
			try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
				if(LuaAPI.lua_gettop(L) == 2 && (LuaAPI.lua_isnil(L, 2) || LuaAPI.lua_type(L, 2) == LuaTypes.LUA_TSTRING))
				{
					string _taskName = LuaAPI.lua_tostring(L, 2);
					
					var gen_ret = new Yoozoo.Core.Common.SmartResLoader(_taskName);
					translator.Push(L, gen_ret);
                    
					return 1;
				}
				if(LuaAPI.lua_gettop(L) == 4 && (LuaAPI.lua_isnil(L, 2) || LuaAPI.lua_type(L, 2) == LuaTypes.LUA_TSTRING) && (LuaAPI.lua_isnil(L, 3) || LuaAPI.lua_type(L, 3) == LuaTypes.LUA_TSTRING) && translator.Assignable<Yoozoo.Managers.ResourceManagerV2.Runtime.Res.ResLoadCompleteCallBack>(L, 4))
				{
					string _taskName = LuaAPI.lua_tostring(L, 2);
					string _resPath = LuaAPI.lua_tostring(L, 3);
					Yoozoo.Managers.ResourceManagerV2.Runtime.Res.ResLoadCompleteCallBack _callBack = translator.GetDelegate<Yoozoo.Managers.ResourceManagerV2.Runtime.Res.ResLoadCompleteCallBack>(L, 4);
					
					var gen_ret = new Yoozoo.Core.Common.SmartResLoader(_taskName, _resPath, _callBack);
					translator.Push(L, gen_ret);
                    
					return 1;
				}
				if(LuaAPI.lua_gettop(L) == 3 && (LuaAPI.lua_isnil(L, 2) || LuaAPI.lua_type(L, 2) == LuaTypes.LUA_TSTRING) && (LuaAPI.lua_isnil(L, 3) || LuaAPI.lua_type(L, 3) == LuaTypes.LUA_TSTRING))
				{
					string _taskName = LuaAPI.lua_tostring(L, 2);
					string _resPath = LuaAPI.lua_tostring(L, 3);
					
					var gen_ret = new Yoozoo.Core.Common.SmartResLoader(_taskName, _resPath);
					translator.Push(L, gen_ret);
                    
					return 1;
				}
				if(LuaAPI.lua_gettop(L) == 5 && (LuaAPI.lua_isnil(L, 2) || LuaAPI.lua_type(L, 2) == LuaTypes.LUA_TSTRING) && translator.Assignable<System.Collections.Generic.List<string>>(L, 3) && translator.Assignable<Yoozoo.Managers.ResourceManagerV2.Runtime.Res.ResLoadCompleteCallBack>(L, 4) && translator.Assignable<System.Action>(L, 5))
				{
					string _taskName = LuaAPI.lua_tostring(L, 2);
					System.Collections.Generic.List<string> _resPaths = (System.Collections.Generic.List<string>)translator.GetObject(L, 3, typeof(System.Collections.Generic.List<string>));
					Yoozoo.Managers.ResourceManagerV2.Runtime.Res.ResLoadCompleteCallBack _callBack = translator.GetDelegate<Yoozoo.Managers.ResourceManagerV2.Runtime.Res.ResLoadCompleteCallBack>(L, 4);
					System.Action _completeCallback = translator.GetDelegate<System.Action>(L, 5);
					
					var gen_ret = new Yoozoo.Core.Common.SmartResLoader(_taskName, _resPaths, _callBack, _completeCallback);
					translator.Push(L, gen_ret);
                    
					return 1;
				}
				if(LuaAPI.lua_gettop(L) == 4 && (LuaAPI.lua_isnil(L, 2) || LuaAPI.lua_type(L, 2) == LuaTypes.LUA_TSTRING) && translator.Assignable<System.Collections.Generic.List<string>>(L, 3) && translator.Assignable<Yoozoo.Managers.ResourceManagerV2.Runtime.Res.ResLoadCompleteCallBack>(L, 4))
				{
					string _taskName = LuaAPI.lua_tostring(L, 2);
					System.Collections.Generic.List<string> _resPaths = (System.Collections.Generic.List<string>)translator.GetObject(L, 3, typeof(System.Collections.Generic.List<string>));
					Yoozoo.Managers.ResourceManagerV2.Runtime.Res.ResLoadCompleteCallBack _callBack = translator.GetDelegate<Yoozoo.Managers.ResourceManagerV2.Runtime.Res.ResLoadCompleteCallBack>(L, 4);
					
					var gen_ret = new Yoozoo.Core.Common.SmartResLoader(_taskName, _resPaths, _callBack);
					translator.Push(L, gen_ret);
                    
					return 1;
				}
				if(LuaAPI.lua_gettop(L) == 3 && (LuaAPI.lua_isnil(L, 2) || LuaAPI.lua_type(L, 2) == LuaTypes.LUA_TSTRING) && translator.Assignable<System.Collections.Generic.List<string>>(L, 3))
				{
					string _taskName = LuaAPI.lua_tostring(L, 2);
					System.Collections.Generic.List<string> _resPaths = (System.Collections.Generic.List<string>)translator.GetObject(L, 3, typeof(System.Collections.Generic.List<string>));
					
					var gen_ret = new Yoozoo.Core.Common.SmartResLoader(_taskName, _resPaths);
					translator.Push(L, gen_ret);
                    
					return 1;
				}
				
			}
			catch(System.Exception gen_e) {
				return LuaAPI.luaL_error(L, $"c# exception: {gen_e}\n{Yoozoo.Framework.Managers.LuaManager.GetTraceBack()}");
			}
            return LuaAPI.luaL_error(L, "invalid arguments to Yoozoo.Core.Common.SmartResLoader constructor!");
            
        }

        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int __CreateInstanceNew(RealStatePtr L)
        {
            
			try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
				if(LuaAPI.lua_gettop(L) == 1 && (LuaAPI.lua_isnil(L, 1) || LuaAPI.lua_type(L, 1) == LuaTypes.LUA_TSTRING))
				{
					string _taskName = LuaAPI.lua_tostring(L, 1);
					
					var gen_ret = new Yoozoo.Core.Common.SmartResLoader(_taskName);
					translator.Push(L, gen_ret);
                    
					return 1;
				}
				if(LuaAPI.lua_gettop(L) == 3 && (LuaAPI.lua_isnil(L, 1) || LuaAPI.lua_type(L, 1) == LuaTypes.LUA_TSTRING) && (LuaAPI.lua_isnil(L, 2) || LuaAPI.lua_type(L, 2) == LuaTypes.LUA_TSTRING) && translator.Assignable<Yoozoo.Managers.ResourceManagerV2.Runtime.Res.ResLoadCompleteCallBack>(L, 3))
				{
					string _taskName = LuaAPI.lua_tostring(L, 1);
					string _resPath = LuaAPI.lua_tostring(L, 2);
					Yoozoo.Managers.ResourceManagerV2.Runtime.Res.ResLoadCompleteCallBack _callBack = translator.GetDelegate<Yoozoo.Managers.ResourceManagerV2.Runtime.Res.ResLoadCompleteCallBack>(L, 3);
					
					var gen_ret = new Yoozoo.Core.Common.SmartResLoader(_taskName, _resPath, _callBack);
					translator.Push(L, gen_ret);
                    
					return 1;
				}
				if(LuaAPI.lua_gettop(L) == 2 && (LuaAPI.lua_isnil(L, 1) || LuaAPI.lua_type(L, 1) == LuaTypes.LUA_TSTRING) && (LuaAPI.lua_isnil(L, 2) || LuaAPI.lua_type(L, 2) == LuaTypes.LUA_TSTRING))
				{
					string _taskName = LuaAPI.lua_tostring(L, 1);
					string _resPath = LuaAPI.lua_tostring(L, 2);
					
					var gen_ret = new Yoozoo.Core.Common.SmartResLoader(_taskName, _resPath);
					translator.Push(L, gen_ret);
                    
					return 1;
				}
				if(LuaAPI.lua_gettop(L) == 4 && (LuaAPI.lua_isnil(L, 1) || LuaAPI.lua_type(L, 1) == LuaTypes.LUA_TSTRING) && translator.Assignable<System.Collections.Generic.List<string>>(L, 2) && translator.Assignable<Yoozoo.Managers.ResourceManagerV2.Runtime.Res.ResLoadCompleteCallBack>(L, 3) && translator.Assignable<System.Action>(L, 4))
				{
					string _taskName = LuaAPI.lua_tostring(L, 1);
					System.Collections.Generic.List<string> _resPaths = (System.Collections.Generic.List<string>)translator.GetObject(L, 2, typeof(System.Collections.Generic.List<string>));
					Yoozoo.Managers.ResourceManagerV2.Runtime.Res.ResLoadCompleteCallBack _callBack = translator.GetDelegate<Yoozoo.Managers.ResourceManagerV2.Runtime.Res.ResLoadCompleteCallBack>(L, 3);
					System.Action _completeCallback = translator.GetDelegate<System.Action>(L, 4);
					
					var gen_ret = new Yoozoo.Core.Common.SmartResLoader(_taskName, _resPaths, _callBack, _completeCallback);
					translator.Push(L, gen_ret);
                    
					return 1;
				}
				if(LuaAPI.lua_gettop(L) == 3 && (LuaAPI.lua_isnil(L, 1) || LuaAPI.lua_type(L, 1) == LuaTypes.LUA_TSTRING) && translator.Assignable<System.Collections.Generic.List<string>>(L, 2) && translator.Assignable<Yoozoo.Managers.ResourceManagerV2.Runtime.Res.ResLoadCompleteCallBack>(L, 3))
				{
					string _taskName = LuaAPI.lua_tostring(L, 1);
					System.Collections.Generic.List<string> _resPaths = (System.Collections.Generic.List<string>)translator.GetObject(L, 2, typeof(System.Collections.Generic.List<string>));
					Yoozoo.Managers.ResourceManagerV2.Runtime.Res.ResLoadCompleteCallBack _callBack = translator.GetDelegate<Yoozoo.Managers.ResourceManagerV2.Runtime.Res.ResLoadCompleteCallBack>(L, 3);
					
					var gen_ret = new Yoozoo.Core.Common.SmartResLoader(_taskName, _resPaths, _callBack);
					translator.Push(L, gen_ret);
                    
					return 1;
				}
				if(LuaAPI.lua_gettop(L) == 2 && (LuaAPI.lua_isnil(L, 1) || LuaAPI.lua_type(L, 1) == LuaTypes.LUA_TSTRING) && translator.Assignable<System.Collections.Generic.List<string>>(L, 2))
				{
					string _taskName = LuaAPI.lua_tostring(L, 1);
					System.Collections.Generic.List<string> _resPaths = (System.Collections.Generic.List<string>)translator.GetObject(L, 2, typeof(System.Collections.Generic.List<string>));
					
					var gen_ret = new Yoozoo.Core.Common.SmartResLoader(_taskName, _resPaths);
					translator.Push(L, gen_ret);
                    
					return 1;
				}
				
			}
			catch(System.Exception gen_e) {
				return LuaAPI.luaL_error(L, $"c# exception: {gen_e}\n{Yoozoo.Framework.Managers.LuaManager.GetTraceBack()}");
			}
            return LuaAPI.luaL_error(L, "invalid arguments to Yoozoo.Core.Common.SmartResLoader constructor!");
            
        }

        
		
        
		
        
        
        
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _m_AddLoad(RealStatePtr L)
        {
		    try {
            
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
            
            
                Yoozoo.Core.Common.SmartResLoader gen_to_be_invoked = (Yoozoo.Core.Common.SmartResLoader)translator.FastGetCSObj(L, 1);
            
            
			    int gen_param_count = LuaAPI.lua_gettop(L);
            
                if(gen_param_count == 3&& (LuaAPI.lua_isnil(L, 2) || LuaAPI.lua_type(L, 2) == LuaTypes.LUA_TSTRING)&& translator.Assignable<Yoozoo.Managers.ResourceManagerV2.Runtime.Res.ResLoadCompleteCallBack>(L, 3)) 
                {
                    string _resPath = LuaAPI.lua_tostring(L, 2);
                    Yoozoo.Managers.ResourceManagerV2.Runtime.Res.ResLoadCompleteCallBack _callBack = translator.GetDelegate<Yoozoo.Managers.ResourceManagerV2.Runtime.Res.ResLoadCompleteCallBack>(L, 3);
                    
                    gen_to_be_invoked.AddLoad( _resPath, _callBack );
                    
                    
                    
                    return 0;
                }
                if(gen_param_count == 2&& (LuaAPI.lua_isnil(L, 2) || LuaAPI.lua_type(L, 2) == LuaTypes.LUA_TSTRING)) 
                {
                    string _resPath = LuaAPI.lua_tostring(L, 2);
                    
                    gen_to_be_invoked.AddLoad( _resPath );
                    
                    
                    
                    return 0;
                }
                
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, $"c# exception: {gen_e}\n{Yoozoo.Framework.Managers.LuaManager.GetTraceBack()}");
            }
            
            return LuaAPI.luaL_error(L, "invalid arguments to Yoozoo.Core.Common.SmartResLoader.AddLoad!");
            
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _m_Load(RealStatePtr L)
        {
		    try {
            
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
            
            
                Yoozoo.Core.Common.SmartResLoader gen_to_be_invoked = (Yoozoo.Core.Common.SmartResLoader)translator.FastGetCSObj(L, 1);
            
            
			    int gen_param_count = LuaAPI.lua_gettop(L);
            
                if(gen_param_count == 2&& translator.Assignable<System.Action>(L, 2)) 
                {
                    System.Action _callBack = translator.GetDelegate<System.Action>(L, 2);
                    
                    gen_to_be_invoked.Load( _callBack );
                    
                    
                    
                    return 0;
                }
                if(gen_param_count == 1) 
                {
                    
                    gen_to_be_invoked.Load(  );
                    
                    
                    
                    return 0;
                }
                
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, $"c# exception: {gen_e}\n{Yoozoo.Framework.Managers.LuaManager.GetTraceBack()}");
            }
            
            return LuaAPI.luaL_error(L, "invalid arguments to Yoozoo.Core.Common.SmartResLoader.Load!");
            
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _m_Dispose(RealStatePtr L)
        {
		    try {
            
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
            
            
                Yoozoo.Core.Common.SmartResLoader gen_to_be_invoked = (Yoozoo.Core.Common.SmartResLoader)translator.FastGetCSObj(L, 1);
            
            
                
                {
                    
                    gen_to_be_invoked.Dispose(  );
                    
                    
                    
                    return 0;
                }
                
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, $"c# exception: {gen_e}\n{Yoozoo.Framework.Managers.LuaManager.GetTraceBack()}");
            }
            
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _m_ToString(RealStatePtr L)
        {
		    try {
            
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
            
            
                Yoozoo.Core.Common.SmartResLoader gen_to_be_invoked = (Yoozoo.Core.Common.SmartResLoader)translator.FastGetCSObj(L, 1);
            
            
                
                {
                    
                        var gen_ret = gen_to_be_invoked.ToString(  );
                        LuaAPI.lua_pushstring(L, gen_ret);
                    
                    
                    
                    return 1;
                }
                
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, $"c# exception: {gen_e}\n{Yoozoo.Framework.Managers.LuaManager.GetTraceBack()}");
            }
            
        }
        
        
        
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _g_get_ResLoader(RealStatePtr L)
        {
		    try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
			
                Yoozoo.Core.Common.SmartResLoader gen_to_be_invoked = (Yoozoo.Core.Common.SmartResLoader)translator.FastGetCSObj(L, 1);
                translator.Push(L, gen_to_be_invoked.ResLoader);
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, $"c# exception: {gen_e}\n{Yoozoo.Framework.Managers.LuaManager.GetTraceBack()}");
            }
            return 1;
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _g_get_LoadingCount(RealStatePtr L)
        {
		    try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
			
                Yoozoo.Core.Common.SmartResLoader gen_to_be_invoked = (Yoozoo.Core.Common.SmartResLoader)translator.FastGetCSObj(L, 1);
                LuaAPI.xlua_pushinteger(L, gen_to_be_invoked.LoadingCount);
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, $"c# exception: {gen_e}\n{Yoozoo.Framework.Managers.LuaManager.GetTraceBack()}");
            }
            return 1;
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _g_get_ResLoadingCount(RealStatePtr L)
        {
		    try {
            
			    LuaAPI.xlua_pushinteger(L, Yoozoo.Core.Common.SmartResLoader.ResLoadingCount);
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, $"c# exception: {gen_e}\n{Yoozoo.Framework.Managers.LuaManager.GetTraceBack()}");
            }
            return 1;
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _g_get_taskName(RealStatePtr L)
        {
		    try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
			
                Yoozoo.Core.Common.SmartResLoader gen_to_be_invoked = (Yoozoo.Core.Common.SmartResLoader)translator.FastGetCSObj(L, 1);
                LuaAPI.lua_pushstring(L, gen_to_be_invoked.taskName);
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, $"c# exception: {gen_e}\n{Yoozoo.Framework.Managers.LuaManager.GetTraceBack()}");
            }
            return 1;
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _g_get_completeTime(RealStatePtr L)
        {
		    try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
			
                Yoozoo.Core.Common.SmartResLoader gen_to_be_invoked = (Yoozoo.Core.Common.SmartResLoader)translator.FastGetCSObj(L, 1);
                LuaAPI.lua_pushnumber(L, gen_to_be_invoked.completeTime);
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, $"c# exception: {gen_e}\n{Yoozoo.Framework.Managers.LuaManager.GetTraceBack()}");
            }
            return 1;
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _g_get_ResPathList(RealStatePtr L)
        {
		    try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
			
                Yoozoo.Core.Common.SmartResLoader gen_to_be_invoked = (Yoozoo.Core.Common.SmartResLoader)translator.FastGetCSObj(L, 1);
                translator.Push(L, gen_to_be_invoked.ResPathList);
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, $"c# exception: {gen_e}\n{Yoozoo.Framework.Managers.LuaManager.GetTraceBack()}");
            }
            return 1;
        }
        
        
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _s_set_LoadingCount(RealStatePtr L)
        {
		    try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
			
                Yoozoo.Core.Common.SmartResLoader gen_to_be_invoked = (Yoozoo.Core.Common.SmartResLoader)translator.FastGetCSObj(L, 1);
                gen_to_be_invoked.LoadingCount = LuaAPI.xlua_tointeger(L, 2);
            
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, $"c# exception: {gen_e}\n{Yoozoo.Framework.Managers.LuaManager.GetTraceBack()}");
            }
            return 0;
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _s_set_ResLoadingCount(RealStatePtr L)
        {
		    try {
                
			    Yoozoo.Core.Common.SmartResLoader.ResLoadingCount = LuaAPI.xlua_tointeger(L, 1);
            
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, $"c# exception: {gen_e}\n{Yoozoo.Framework.Managers.LuaManager.GetTraceBack()}");
            }
            return 0;
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _s_set_taskName(RealStatePtr L)
        {
		    try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
			
                Yoozoo.Core.Common.SmartResLoader gen_to_be_invoked = (Yoozoo.Core.Common.SmartResLoader)translator.FastGetCSObj(L, 1);
                gen_to_be_invoked.taskName = LuaAPI.lua_tostring(L, 2);
            
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, $"c# exception: {gen_e}\n{Yoozoo.Framework.Managers.LuaManager.GetTraceBack()}");
            }
            return 0;
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _s_set_completeTime(RealStatePtr L)
        {
		    try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
			
                Yoozoo.Core.Common.SmartResLoader gen_to_be_invoked = (Yoozoo.Core.Common.SmartResLoader)translator.FastGetCSObj(L, 1);
                gen_to_be_invoked.completeTime = (float)LuaAPI.lua_tonumber(L, 2);
            
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, $"c# exception: {gen_e}\n{Yoozoo.Framework.Managers.LuaManager.GetTraceBack()}");
            }
            return 0;
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _s_set_ResPathList(RealStatePtr L)
        {
		    try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
			
                Yoozoo.Core.Common.SmartResLoader gen_to_be_invoked = (Yoozoo.Core.Common.SmartResLoader)translator.FastGetCSObj(L, 1);
                gen_to_be_invoked.ResPathList = (System.Collections.Generic.List<string>)translator.GetObject(L, 2, typeof(System.Collections.Generic.List<string>));
            
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, $"c# exception: {gen_e}\n{Yoozoo.Framework.Managers.LuaManager.GetTraceBack()}");
            }
            return 0;
        }
        
		
		
		
		
    }
}
